package com.neo.community.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author neo
 * @since 2020-08-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DiscussPost对象", description="")
public class DiscussPost1 implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty(value = "用户主键")
    private Long userId;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章正文")
    private String content;

    @ApiModelProperty(value = "文章类型 0.置顶，1.普通")
    private Integer type;

    @TableLogic
    @ApiModelProperty(value = "文章状态 0.精华，1.正常，2.拉黑")
    private Integer status;

    @ApiModelProperty(value = "评论条数 ")
    private Integer commentCount;

    @ApiModelProperty(value = "文章评分")
    private Double score;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    private Date gmtModified;


}
